package com.itheima.mm.wx.mapper;

import com.itheima.mm.pojo.WxMember;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

@Mapper
public interface WxMemberMapper {
    /**
     * @Description WxMemberMapper
     * @Author kangwei
     * @Date 2024-06-28
     */
    Integer updateCityAndCourse(Map updateData);

    /**
     * 根据openId查询用户
     * @param openId
     * @return
     */
    WxMember findByOpenId(String openId);


    /**
     *新增用户
     * @param wxMember
     * @return
     */
    Integer addMember(WxMember wxMember);

}
